/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.yatb.trac.pojo.condition;

import com.yatb.trac.util.SQLCondition;
import com.yatb.trac.util.StatoConstant;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

/**
 *
 * @author edoardo
 */
public class TicketsFinderStatoAperto implements SQLCondition{

    public TicketsFinderStatoAperto() {
    }

    public Criterion create(Object... params) {
        Criterion c = Restrictions.eq("stati.idStato", StatoConstant.APERTO.getIdStato());
        return c;
    }



}
